<?php

declare(strict_types=1);
namespace App\CustHub\Process;

use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;

#[Process(name: "default-queue")]
class DefaultQueueConsumer extends ConsumerProcess
{

    public function isEnable($server): bool
    {
        return \Hyperf\Support\env('REDIS_QUEUE_ENABLE', false);
    }
}